package com.example.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.infrastructure.common.BasePO;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 预约记录表 PO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("appointments")
@Schema(name = "Appointments", description = "预约记录表")
public class Appointments extends BasePO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "预约单号")
    @TableField("appointment_no")
    private String appointmentNo;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "医生ID")
    @TableField("doctor_id")
    private Long doctorId;

    @Schema(description = "排班ID")
    @TableField("schedule_id")
    private Long scheduleId;

    @Schema(description = "预约时间")
    @TableField("appointment_time")
    private LocalDateTime appointmentTime;

    @Schema(description = "就诊人姓名")
    @TableField("patient_name")
    private String patientName;

    @Schema(description = "就诊人电话")
    @TableField("patient_phone")
    private String patientPhone;

    @Schema(description = "就诊人身份证")
    @TableField("patient_id_card")
    private String patientIdCard;

    @Schema(description = "症状描述")
    @TableField("symptoms")
    private String symptoms;

    @Schema(description = "状态：0待就诊，1已完成，2已取消，3已过期")
    @TableField("status")
    private Byte status;

    @Schema(description = "取消原因")
    @TableField("cancel_reason")
    private String cancelReason;

    @Schema(description = "租户编号")
    @TableField("tenant_id")
    private Long tenantId;


}